import Layout from "@/layout";

export default [
  {
    path: "/product",
    component: Layout,
    name: "product",
    meta: { title: "商品管理", icon: "el-icon-s-help" },
    children: [
      {
        path: "/product/goods/index",
        name: "product_goods_index",
        component: () => import("@/views/product/goods/index"),
        meta: { title: "商品管理", icon: "table" },
      },
      {
        path: "/product/goods/create",
        name: "product_goods_create",
        component: () => import("@/views/product/goods/create"),
      },
      {
        path: "/product/goods/update",
        name: "product_goods_update",
        component: () => import("@/views/product/goods/create"),
        meta: { title: "更新商品", icon: "table" },
      },
      {
        path: "/product/category/index",
        name: "product_category_index",
        component: () => import("@/views/product/category/index"),
        meta: { title: "商品分类", icon: "table" },
      },
      {
        path: "/product/supplier/index",
        name: "product-supplier-index",
        component: () => import("@/views/product/supplier/index"),
        meta: { title: "供应商管理", icon: "table" },
      },
      {
        path: "/product/rule/index",
        name: "product_spec_index",
        component: () => import("@/views/product/rule/index"),
        meta: { title: "商品规格", icon: "table" },
      },
      {
        path: "/product/comment/index",
        name: "product_comment_index",
        component: () => import("@/views/product/comment/index"),
        meta: { title: "商品评论", icon: "table" },
      },
      {
        path: "/product/store/index",
        name: "product_store_index",
        component: () => import("@/views/product/store/index"),
        meta: { title: "门店管理", icon: "tree" },
      },
    ],
  },
];
